package edu.ynmd.cms.Dao;

import edu.ynmd.cms.model.Student;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import java.util.List;

public interface StudentDao extends JpaRepository<Student,String> {
    @Query("select s from Student s where s.id=:studentid")
    public List<Student> getCourseListByStudent(@Param("studentid")String classroom);
}
